#ifndef _WT_COOKIE_H
#define _WT_COOKIE_H

typedef struct WtCookieT
{
  Tcl_Obj *name;
  Tcl_Obj *expires;
  Tcl_Obj *domain;
  Tcl_Obj *path;
  Tcl_Obj *secure;
  Tcl_Obj *values;
} WtCookie;

Tcl_Obj *WtNewCookieObj();
WtCookie *WtCookieRep(Tcl_Obj *obj);
Tcl_Obj *WtNewCookieClnObj(char *name);
int WtResponseCookiesCmd(ClientData clientData, Tcl_Interp *interp,
                         int objc, Tcl_Obj *const objv[]);
Tcl_Obj *WtCookieCmdGetCookie(Tcl_Interp *interp, Tcl_Obj *obj);
void WtCookieUsage(Tcl_Interp *interp, Tcl_Obj *cmd);
int WtCookieCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
int WtCookieClnCmd(ClientData clientData, Tcl_Interp *interp,
                   int objc, Tcl_Obj *const objv[]);
void WtInitCookieCommands(Tcl_Interp *interp);

extern struct Tcl_ObjType WtCookieType;
extern WtClnItemType WtCookieClnType;

#endif /* !_WT_COOKIE_H */
